/**
 * Copyright(c) Hainan eKing Technology co., LTD
 *
 * @date 2013-9-30
 * 	
 * Original Author: 郑兴(zhengxing)
 *
 * ChangeLog
 *
 */
package com.hnas.sys.core.spring;

import java.util.List;

import javax.annotation.PostConstruct;

import org.springframework.stereotype.Service;

import com.hnas.sys.core.util.CacheUtil;
import com.hnas.sys.service.system.MenuPackageService;
import com.hnas.sys.service.system.dto.DTOMenuPackage;

/**
 * @author 郑兴(zhengxing)
 *
 */
@Service("systemData")
public class SystemData {
	@javax.annotation.Resource
	private MenuPackageService menuPackageService;
	
	@PostConstruct
	public void loadSecurityInfos(){
		List<DTOMenuPackage> mps = menuPackageService.loadAll();
		CacheUtil.setMenuPackageCache(mps);
	}
}
